public class Triangle extends PlaneGraphic
{
    private double a,b,c;

    public Triangle(int a, int b, int c)
    {
        this.a = a;
        this.b = b;
        this.c = c;
    }

    public double CalculateArea()
    {
        double temp = CalculatePerimeter() / 2;

        return Math.sqrt(temp * (temp - a) * (temp - b) * (temp - c));
    }

    public double CalculatePerimeter()
    {
        return a+b+c;
    }
}
